<extend file='resource/admin/base'/>
<block name="content">
    <ul class="nav nav-tabs">
        <li role="presentation" class="active"><a href="#">密码修改</a></li>
    </ul>
    <form action="" method="POST" class="form-horizontal" role="form" onsubmit="return post(event)">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">修改密码</h3>
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">管理员账号</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" disabled="disabled" value="{{Session::get('admin.admin_username')}}" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">旧密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"  name="admin_password" value="" placeholder="请输入旧密码">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">新密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"  name="newPassword" value="" placeholder="请输入新密码">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">确认密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"  name="retryPassword" value="" placeholder="请再次输入新密码">
                    </div>
                </div>

                <button type="submit" class="btn btn-primary">提交</button>
            </div>




    </form>
    <script>
        function post(event) {
            event.preventDefault();
            require(['util'], function (util) {
                util.submit({
                    successUrl:"refresh"
                });
            });
        }
    </script>
</block>



